package com.ygou.controller.solr;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ygou.service.solr.GoodsSearchService;

@Controller
@RequestMapping(value="/search")
public class GoodsSearchController {
	@Autowired
	private GoodsSearchService goodsSearchService;
	
	@RequestMapping("/updSolr")
	public boolean updSolr(){
		if(goodsSearchService.addfindGoodsAll()==0){
			return false;
		}
		return true;
	}
}
